home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / misc / emu / NESDevTools.lha / Raw2CHR / Raw2CHR.readme < prev    next >
Encoding:
Text File  |  1999-07-17  |  4.5 KB  |  92 lines

  1. Short:      NES CHR-ROM Creator
  2. Author:     Chris Covell (ccovell@direct.ca)
  3. Uploader:   Chris Covell
  4. Type:       misc/emu
  5.  
  6. Raw2CHR is a small program that creates NES Character-ROM data from
  7. a raw binary picture.  This is useful for NES demo or game coders
  8. on the Amiga (or other computers) who wish to convert their graphics
  9. into a format usable in their NES program.  Before making this program,
  10. if I wanted to import a graphic into an NES CHR-ROM, I would have to copy
  11. the image over to my Macintosh, save it as a PICT, then load it up in a
  12. buggy and slow program on the Mac, bring it back over to the Amiga, then
  13. chop off the CHR data from my NES demo.  What a pain in the butt, I can
  14. tell you!  I won't even get into what I had to do to convert my images
  15. into a 128x256-pixel image which that Mac "program" required of me.
  16.  
  17. I made this program because I wanted to speed up the time spent making
  18. graphics for the NES, and because Lennart _still_ hasn't gotten around to
  19. implementing IFF importation into GoldNESt!!  Hey, Lennart!!
  20.  
  21. Now all I have to do to make CHR-roms is save my graphics as a brush in
  22. my favourite Amiga program, convert it to a raw binary format, then run
  23. it through Raw2CHR.  It _really_ saves time!
  24.  
  25. Usage
  26. -----
  27. At the command line, type in Raw2CHR infile outfile [-w]
  28.  
  29. The infile is the raw binary graphic that you want to convert to a CHR-ROM
  30. format.  Several programs on different platforms can create this type of
  31. file for you.  On the Amiga, a program called ArtPro is good.  Here's how
  32. you should go about the process:
  33.  
  34. 1) Draw (or import) your graphics in a paint program.  Make sure the
  35. graphics are 4 colours only (as that is the bit depth of the NES!!) and
  36. 256 or fewer pixels in width (as the NES' horizontal resolution is 256
  37. pixels).
  38.  
  39. 2) Pick up a brush (or selection) of the entire image having a width of
  40. either 128 or 256 pixels, depending on whether the entire image will fit
  41. at most into 128 or 256 pixels.  Don't worry if you're picking up a bunch
  42. of empty space; you _can_ compress that later.  The height of the region
  43. that you pick up should be a multiple of 8.  You should note that the
  44. size of one NES CHR-ROM bank is 8192 bytes, which translates into either
  45. a 256x128 or 128x256-pixel image.  Any greater than that, and the remaining
  46. graphics will spill over into another bank.
  47.  
  48. 3) Save the image to disk, and load the image into a graphics conversion
  49. program.  (I'll use ArtPro.)  Now, save the image as a RAW file in BINARY
  50. format (ie, not as source or anything).  The bitplanes must be chosen as
  51. being INTERLEAVED, not planar.
  52.  
  53. 4) Run Raw2CHR, specifying the raw data as the infile, and the CHR-ROM as
  54. the outfile.  If you saved image as a 128-pixel-wide file, then you don't
  55. need to specify anything else.  If your saved image is a full 256 pixels
  56. wide, then you need to specify the "-w" switch.
  57.  
  58. Raw2CHR should now have created a CHR-ROM file from your image.  If your
  59. image was bigger than what would have fit into one CHR bank and you would
  60. like to compress the data, you can use my program, "CHARlie" to do so.
  61. Use the "-c" switch in CHARlie, and make several passes with it over the
  62. output files.  The graphics data should then be compressed as much as
  63. possible into your CHR-ROM.
  64.  
  65. This program is just a small little utility, so I didn't spend (much) of a
  66. time (at all) coding it.  As such, it is again in my favourite flavour of
  67. spaghetti-code.  The C source code is included, if you want to improve on
  68. it at all.
  69.  
  70.  
  71. Other things of mine which you should check out are:
  72.  
  73. pix/anim/AmiBanner.lha     ;An animating GIF banner that supports Amiga.
  74. pix/boot/Win95BURN.lha     ;My Windows'95 trasher.  Burn, baby burn!!!
  75. pix/boot/Win95BURN.jpg     ;A JPEG version of that pic.
  76. pix/boot/WinBURN24.lha     ;A 24-bit IFF version of that pic.
  77. pix/wb/BeBoxWBs.lha        ;Some pics of my WB using the BeIcons.
  78. pix/wb/JapanWB.lha         ;A Japanese Workbench. ;-)
  79. pix/wb/HAMBrowse.lha       ;A Pic showing how to browse the WWW in HAM!
  80. pix/icon/BeIcons_2.lha     ;A set of NewIcons in the BeOS style! (and more!)
  81. pix/trace/SidMan*.lha      ;Concept Render of a SID-Playing Walkman.
  82. pix/trace/SidManLCD.lha    ;LCD texture from the SID walkman.
  83. gfx/aga/HUGEBench.lha      ;Some monitor settings for a HUGE Workbench!
  84. text/font/C-64Font.lha     ;A Commodore-64 font with European accents.
  85. misc/emu/Snd2Mid.lha       ;Converts NES PSG songs to MIDI!!
  86. misc/emu/CHARlie.lha       ;Compresses NES CHR-ROM graphics.
  87.  
  88. And of course, my webpage at http://mypage.direct.ca/c/ccovell/
  89. It has lots of stuff that you might enjoy exploring.
  90.  
  91. See ya!
  92.